package homework.test1.Domain;

import java.io.Serializable;

/*
//		User{
//			String username;
//			int age
//			String password;
//			String phoneNum;
//			String gender;
//		}
 */
public class User implements Serializable {
    private String username;
    private int age;
    private String password;
    private String phoneNum;
    private String gender;

    public User() {
    }

    public User(String username, int age, String password, String phoneNum, String gender) {
        this.username = username;
        this.age = age;
        this.password = password;
        this.phoneNum = phoneNum;
        this.gender = gender;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return username + ',' +
                age + ','+
                password + ',' +
                 phoneNum + ',' +
                gender;
    }
}
